import java.util.Map;
import java.util.TreeMap;

import java.util.HashMap;



public class Test {

    public static void main(String[] args) {
        Map<String,Integer> map=new TreeMap();
        map.put("小狗",5);
        map.put("小猫",9);



    }


}

 class MapExample {
    public static void main(String[] args) {
        Map<String, Integer> map = new HashMap<>();
        map.put("apple", 1);
        map.put("banana", 2);
        map.put("cherry", 3);

        System.out.println("Get value for 'apple': " + map.get("apple"));
        System.out.println("Contains 'banana': " + map.containsKey("banana"));
        System.out.println("Values: " + map.values());
        System.out.println("Entry Set: " + map.entrySet());
        System.out.println("Key Set: " + map.keySet());

        map.remove("cherry");
        System.out.println("After removing 'cherry': " + map);
    }
}